﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_ContentMg.aspx.cs" Inherits="QiCms.Web.Admin.Admin_ContentMg" %>
<%@ Register assembly="FCKeditorV2.6.3" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
<form id="TableForm" runat="server">
    <asp:Panel ID="AddPH" runat="server">
        <div class="tpl-content-wrapper">
                <ol class="am-breadcrumb">
                <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
                <li><a href="Admin_Content.aspx">内容管理</a></li>
                <li class="am-active">添加内容</li>
                </ol>
                <div class="tpl-portlet-components">
                    <div class="am-g tpl-amazeui-form">
                        <div class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">所属分类：</label>
                                <div class="am-u-sm-9">
                                    <div style="width:80%;float:left;">
                                        <asp:DropDownList ID="ClassDrop" runat="server" data-am-selected="{btnSize: 'sm'}"></asp:DropDownList>
                                    </div>
                                    <asp:RegularExpressionValidator ID="ClassValRE" runat="server" ErrorMessage="*"></asp:RegularExpressionValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">内容标题：</label>
                                <div class="am-u-sm-9">
                                    <input name="TitleTxt" type="text" id="TitleTxt" style="width:80%;float:left;" placeholder="标题" runat="server">
                                    <asp:RequiredFieldValidator ID="TitleValR" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">图片信息：</label>
                                <div class="am-u-sm-9">
                                    <input name="TitleImgTxt" type="text" id="TitleImgTxt" style="width:50%;float:left;" placeholder="首张缩略图片地址" runat="server">
                                    <div class="input-icon right">
                                        <div class="tpl-switch" style="width:5%;float:left;margin-left:3%;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ImgArtChk" name="ImgArtChk" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " style="float:left;margin-left:20px;" onclick="ShowDialog('UpFiles.aspx',576,280)">上传图片</button>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">属性：</label>
                                <div class="am-u-sm-9">
                                    <div class="input-icon right" style="font-size:12px;">
                                        <asp:CheckBox ID="IndexTopChk" runat="server" Text="首页固顶" />
                                        <asp:CheckBox ID="HeadLineChk" runat="server" Text="头条信息" />
                                        <asp:CheckBox ID="SortTopChk" runat="server" Text="分类固顶" />
                                        <asp:CheckBox ID="HighLightChk" runat="server" Text="标题醒目" />
                                        <br />
                                        <asp:CheckBox ID="MemberArtChk" runat="server" Text="会员文章" />
                                        <asp:CheckBox ID="VipChk" runat="server" Text="Vip文章" />
                                        <asp:CheckBox ID="ReMarkChk" runat="server" Checked="True" Text="允许评论" />
                                        
                                    </div>

                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">所属专题：</label>
                                <div class="am-u-sm-9">
                                    <div style="width:80%;float:left;">
                                        <asp:DropDownList ID="TopicDrop" runat="server" data-am-selected="{btnSize: 'sm'}"></asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">内容简介：</label>
                                <div class="am-u-sm-9">
                                    <textarea  name="SummaryTxt" id="SummaryTxt" style="width:90%;float:left;" rows="3" placeholder="内容简要说明,不过超过250个字符" runat="server"></textarea>
                                    <asp:RequiredFieldValidator ID="SummaryValR" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">内容：</label>
                                <div class="am-u-sm-9">
                                    <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" Height="400px"></FCKeditorV2:FCKeditor>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">Tags：</label>
                                <div class="am-u-sm-9">
                                    <input name="NkeyTxt" type="text" id="NkeyTxt" style="width:60%;float:left;" placeholder="多个关键字请用，号分隔" runat="server">
                                    <asp:RegularExpressionValidator ID="NkeyValRE" runat="server" ErrorMessage="关键字首字符不能为数字"></asp:RegularExpressionValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">作者：</label>
                                <div class="am-u-sm-9">
                                    <input name="AuthorTxt" type="text" id="AuthorTxt" placeholder="本站" style="width:50%;float:left;" runat="server" readonly="readonly">
                                    <div class="am-u-sm-12 am-u-md-3 right" style="width:100px;">
                                    <select data-am-selected="{btnSize: 'sm'}" onchange="ctl00_QBSCmsContentPlaceHolder_AuthorTxt.value = this.options[this.selectedIndex].value; this.selectedIndex = 0">
                                        <option selected="selected">←</option>
                                        <option value="佚名">佚名</option>
                                        <option value="未知">未知</option>
                                    </select>
                                    </div>
                                </div>               
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">邮箱：</label>
                                <div class="am-u-sm-9">
                                    <input name="AuthorEmailTxt" type="text" id="AuthorEmailTxt" placeholder="9392001@qq.com" runat="server">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">来源：</label>
                                <div class="am-u-sm-9">
                                    <input name="SourceTxt" type="text" id="SourceTxt" placeholder="本站" style="width:50%;float:left;" runat="server" readonly="readonly">
                                    <div class="am-u-sm-12 am-u-md-3 right" style="width:100px;">
                                    <select data-am-selected="{btnSize: 'sm'}" onchange="ctl00_QBSCmsContentPlaceHolder_SourceTxt.value = this.options[this.selectedIndex].value; this.selectedIndex = 0">
                                        <option selected="selected">←</option>
                                        <option value="本站">本站</option>
                                        <option value="未知">未知</option>
                                    </select>
                                    </div>
                                </div>               
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">来源网址：</label>
                                <div class="am-u-sm-9">
                                    <input name="SourceUrlTxt" type="text" id="SourceUrlTxt" placeholder="http://www.baidu.com" runat="server">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <asp:Button ID="ArticleAddBtn" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" runat="server" OnClick="ArticleAddBtn_Click" Text="添加"/>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
    </asp:Panel>
    <asp:Panel ID="EditPH" runat="server">
        <div class="tpl-content-wrapper">
                <ol class="am-breadcrumb">
                <li><a href="Index.aspx" class="am-icon-home">首页</a></li>
                <li><a href="Admin_Content.aspx">内容管理</a></li>
                <li class="am-active">编辑内容</li>
                </ol>
                <div class="tpl-portlet-components">
                    <div class="am-g tpl-amazeui-form">
                        <div class="am-form am-form-horizontal">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">所属分类：</label>
                                <div class="am-u-sm-9">
                                    <div style="width:80%;float:left;">
                                        <asp:DropDownList ID="ClassDropEdit" runat="server" data-am-selected="{btnSize: 'sm'}"></asp:DropDownList>
                                    </div>
                                    <asp:RegularExpressionValidator ID="ClassValREEdit" runat="server" ErrorMessage="*"></asp:RegularExpressionValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">内容标题：</label>
                                <div class="am-u-sm-9">
                                    <input name="TitleTxtEdit" type="text" id="TitleTxtEdit" style="width:80%;float:left;" placeholder="标题" runat="server">
                                    <asp:RequiredFieldValidator ID="TitleValREdit" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">图片信息：</label>
                                <div class="am-u-sm-9">
                                    <input name="TitleImgTxtEdit" type="text" id="TitleImgTxtEdit" style="width:50%;float:left;" placeholder="首张缩略图片地址" runat="server">
                                    <div class="input-icon right">
                                        <div class="tpl-switch" style="width:5%;float:left;margin-left:3%;">
                                            <input type="checkbox" class="ios-switch tpl-switch-btn" ID="ImgArtChkEdit" name="ImgArtChkEdit" runat="server"/>
                                            <div class="tpl-switch-btn-view">
                                                <div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " style="float:left;margin-left:20px;" onclick="ShowDialog('UpFiles.aspx',576,280)">上传图片</button>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">属性：</label>
                                <div class="am-u-sm-9">
                                    <div class="input-icon right" style="font-size:12px;">
                                        <asp:CheckBox ID="IndexTopChkEdit" runat="server" Text="首页固顶" />
                                        <asp:CheckBox ID="HeadLineChkEdit" runat="server" Text="头条信息" />
                                        <asp:CheckBox ID="SortTopChkEdit" runat="server" Text="分类固顶" />
                                        <asp:CheckBox ID="HighLightChkEdit" runat="server" Text="标题醒目" />
                                        <br />
                                        <asp:CheckBox ID="MemberArtChkEdit" runat="server" Text="会员文章" />
                                        <asp:CheckBox ID="VipChkEdit" runat="server" Text="Vip文章" />
                                        <asp:CheckBox ID="ReMarkChkEdit" runat="server" Text="允许评论" />
                                        
                                    </div>

                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">所属专题：</label>
                                <div class="am-u-sm-9">
                                    <asp:DropDownList ID="TopicDropEdit" runat="server" data-am-selected="{btnSize: 'sm'}"></asp:DropDownList>
                                </div>
                            </div>
                            
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">内容简介：</label>
                                <div class="am-u-sm-9">
                                    <textarea  name="SummaryTxtEdit" id="SummaryTxtEdit" style="width:90%;float:left;" rows="3" placeholder="内容简要说明,不过超过250个字符" runat="server"></textarea>
                                    <asp:RequiredFieldValidator ID="SummaryValREdit" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">内容：</label>
                                <div class="am-u-sm-9">
                                    <FCKeditorV2:FCKeditor ID="FCKeditor2" runat="server" Height="400px"></FCKeditorV2:FCKeditor>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">Tags：</label>
                                <div class="am-u-sm-9">
                                    <input name="NkeyTxtEdit" type="text" id="NkeyTxtEdit" style="width:60%;float:left;" placeholder="多个关键字请用，号分隔" runat="server">
                                    <asp:RegularExpressionValidator ID="NkeyValREEdit" runat="server" ErrorMessage="关键字首字符不能为数字"></asp:RegularExpressionValidator>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">作者：</label>
                                <div class="am-u-sm-9">
                                    <input name="AuthorTxtEdit" type="text" id="AuthorTxtEdit" placeholder="本站" style="width:50%;float:left;" runat="server" readonly="readonly">
                                    <div class="am-u-sm-12 am-u-md-3 right" style="width:100px;">
                                    <select data-am-selected="{btnSize: 'sm'}" onchange="ctl00_QBSCmsContentPlaceHolder_AuthorTxtEdit.value = this.options[this.selectedIndex].value; this.selectedIndex = 0">
                                        <option selected="selected">←</option>
                                        <option value="佚名">佚名</option>
                                        <option value="未知">未知</option>
                                    </select>
                                    </div>
                                </div>               
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">邮箱：</label>
                                <div class="am-u-sm-9">
                                    <input name="AuthorEmailTxtEdit" type="text" id="AuthorEmailTxtEdit" placeholder="9392001@qq.com" runat="server">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">来源：</label>
                                <div class="am-u-sm-9">
                                    <input name="SourceTxtEdit" type="text" id="SourceTxtEdit" placeholder="本站" style="width:50%;float:left;" runat="server" readonly="readonly">
                                    <div class="am-u-sm-12 am-u-md-3 right" style="width:100px;">
                                    <select data-am-selected="{btnSize: 'sm'}" onchange="ctl00_QBSCmsContentPlaceHolder_SourceTxtEdit.value = this.options[this.selectedIndex].value; this.selectedIndex = 0">
                                        <option selected="selected">←</option>
                                        <option value="本站">本站</option>
                                        <option value="未知">未知</option>
                                    </select>
                                    </div>
                                </div>               
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label" style="color:darkred;">来源网址：</label>
                                <div class="am-u-sm-9">
                                    <input name="SourceUrlTxtEdit" type="text" id="SourceUrlTxtEdit" placeholder="http://www.baidu.com" runat="server">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <asp:Button ID="ArticleEditBtn" CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" runat="server" OnClick="ArticleEditBtn_Click" Text="提交"/>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
    </asp:Panel>
</form>
</asp:Content>
